﻿#pragma once
#include <afxdialogex.h>
#include "MyEdit.h"
#include <vector>
#include <iostream>
#include <fstream>
#include <io.h>
#include <string>
//#include "DefectInspectionSystemDlg.h"
#define MY_MES2 (WM_USER+134)
using namespace std;
class AFX_CLASS_IMPORT  AIDetailParam : public CDialogEx//__declspec(dllimport)  
{
	DECLARE_DYNAMIC(AIDetailParam)

public:
	AIDetailParam( CWnd* pParent = nullptr);   // 标准构造函数  CString path, CString strCurrentCupType,
	virtual ~AIDetailParam();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_AIDetailParam };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()


//********************************
public:
	afx_msg void OnBnClickedButtonSave();
	afx_msg LRESULT OnReceiveImg(WPARAM wParam, LPARAM lParam);
	CListCtrl m_paramList;
	CEdit m_paramEdit;
	afx_msg void OnEnKillfocusEditInput();
	afx_msg void OnNMDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);

private:
	// 参数输入窗口双击后获得的横纵坐标
	int m_Row;
	int m_Col;

public:
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnBnClickedCheckzangwu();
	int m_switch[23];
	HTuple m_hvHalconWindow;
	int m_currentImg;
	afx_msg void OnBnClickedMfcbutton1();
	HTuple   hv_ImageFiles, hv_num;
	HObject ho_Image;
	afx_msg void OnBnClickedMfcbutton2();
	CRect m_rect;
	afx_msg void OnBnClickedMfcbutton3();
	HObject region_side;
	afx_msg void OnBnClickedCheckmaofa2();
	void HideItem();//int index,int id
	//std::vector<int> idSet;
	afx_msg void OnBnClickedChecklouguang3();
	afx_msg void OnBnClickedCheckfumosunhuai4();
	afx_msg void OnBnClickedCheckmadian5();
	vector<vector<string>> m_listParams;
	afx_msg void OnBnClickedCheckqueliao6();
	afx_msg void OnBnClickedChecktouguang7();
	afx_msg void OnBnClickedCheckcolor8();
	afx_msg void OnBnClickedCheckwater9();
	afx_msg void OnBnClickedCheckplantfiber10();
	afx_msg void OnBnClickedCheckqikong11();
	afx_msg void OnBnClickedCheckzhezhou12();
	afx_msg void OnBnClickedChecksilie13();
	afx_msg void OnBnClickedCheckzheiwangyin14();
	afx_msg void OnBnClickedCheckxipanyin15();
	afx_msg void OnBnClickedCheckbaiban16();
	afx_msg void OnBnClickedCheckhuahen17();
	afx_msg void OnBnClickedCheckaokeng18();
	afx_msg void OnBnClickedCheckdot19();
	afx_msg void OnBnClickedCheckzangwu220();
	afx_msg void OnBnClickedCheckzangwu321();
	afx_msg void OnBnClickedCheckzangwu422();
	afx_msg void OnBnClickedCheckFirstzangwu();
	afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
	HTuple Row0, Row1, Col0, Col1;
	HObject  rectResult;
	afx_msg void OnBnClickedButtonSnap();
	//afx_msg void OnBnClickedRadioGetimg();
	afx_msg void OnBnClickedCheckGetimg();

	HObject m_hoImageDrag;
	//afx_msg LRESULT OnMyMes(WPARAM wParam, LPARAM lParam);
	CMyEdit m_myDialog;
	afx_msg void OnEnChangeEditInput();
	afx_msg void OnNMThemeChangedEditInput(NMHDR* pNMHDR, LRESULT* pResult);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnCustomdrawList(NMHDR*, LRESULT*);

	CString m_path,m_strCurrentCupType;
	void*  m_pMainDlg;;


};
